package com.model;

import java.util.HashMap;

/***************************** IMPORT *****************************/




public class Dictionary  {

	/************ DECLARATIONS ***************/
	private HashMap<byte[], byte[]> map;
	
	
	/************ CONSTRUCTOR ****************/
	public Dictionary(){
		this.map = new HashMap<byte[], byte[]>();
		
	}

	
	/************** METHODES *****************/
	/**
	 * @brief Add received word and his word function (token+type) on the map.
	 * @param word : word received (key).
	 * @param token : token received (value).
	 * @param wordType : type of the word received (value).
	 */
	public void addWordsInMap(byte[] word, byte[] wordType){
		this.map.put(word,wordType);
	}

	
	/************* ACCESSORS *************/
	public HashMap<byte[], byte[]> getMap() {
		return map;
	}

	public void setMap(HashMap<byte[], byte[]> map) {
		this.map = map;
	}

}
